package com.bawei.model_sevent.Activity.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import androidx.appcompat.app.AppCompatActivity;

import com.bawei.model_sevent.R;

public class MainActivity_shouhuo extends AppCompatActivity {

    private EditText showShouhuo;
    private Button showShouhuBonnton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_shouhuo);
        initView();
        String show_dizhi = getIntent().getStringExtra("show_dizhi");
        showShouhuo.setText(show_dizhi);
        showShouhuBonnton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity_shouhuo.this, MainActivity_order.class);
                intent.putExtra("exit",showShouhuo.getText().toString());
                startActivity(intent);
            }
        });
    }

    private void initView() {
        showShouhuo = findViewById(R.id.show_shouhuo);
        showShouhuBonnton = findViewById(R.id.show_shouhu_bonnton);
    }
}